#ifndef CSTATEMAINMENU_H
#define CSTATEMAINMENU_H

#include "CState.h"


class CStateMainMenu : public CState
{
  public:
    CStateMainMenu(CGameManager * mgr);
    virtual ~CStateMainMenu();

    void init();
    void close();
    void run();
    void enable();
    void disable();

    //! Event Receiving Methods
    void OnServerPacketReceived(Packet *packet);

    void OnClientPacketReceived(Packet *packet);

    //! Called when mouse is clicked
    bool OnMouseClick();

    //! Called when a GUI button
    bool OnButtonClick(s32 id);

    //! Start Game
    void StartGame(bool isServer = true);

  protected:
  private:
    enum BUTTON_ID
    {
      BTN_CREA_GAME,
      BTN_JOIN_GAME,
      BTN_GRAVEYARD,
      BTN_EXIT_GAME,
      BTN_TEMPO_BTN,

      TXT_IP_ADDRESS
    };

    IGUIEditBox *txtIpAddress;

    IGUIStaticText *winLabel;

    IGUIStaticText *loseLabel;
};

#endif // CSTATEMAINMENU_H
